﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public class Green : AbstractPlant
    {

        private int _branchCount;

        public Green() { }

        public Green(string name, int price,  int branchCount) : base(name, price)
        {
            _branchCount = branchCount;
        }


        public int BranchCount
        {
            get { return _branchCount; }
            set { _branchCount = value; }
        }

        public override string ToString()
        {
            return base.ToString() + " количество веток:" + _branchCount;
        }
    }
}
